package meterMonitor.model;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * 监控数据永久记录表
 */
@Data
public class DataRecPO {

    @ColumnWidth(20)
    @ExcelProperty(value = "时间", index = 0)
    private String recTimeStr;

    @ColumnWidth(20)
    @ExcelProperty(value = "线别", index = 1)
    private String lineName;

    @ColumnWidth(20)
    @ExcelProperty(value = "槽位", index = 2)
    private String slotName;

    @ColumnWidth(25)
    @ExcelProperty(value = "设备名称", index = 3)
    private String devName;

    @ColumnWidth(15)
    @ExcelProperty(value = "规格上限", index = 4)
    private BigDecimal upperLimit;

    @ColumnWidth(15)
    @ExcelProperty(value = "规格下限", index = 5)
    private BigDecimal lowerLimit;

    @ColumnWidth(18)
    @ExcelProperty(value = "单位", index = 6)
    private String dataUnit;

    @ColumnWidth(10)
    @ExcelProperty(value = "实际值", index = 7)
    private BigDecimal dataValue;

    @ExcelIgnore
    private Integer recId;
    @ExcelIgnore
    private Integer devId;

    @ExcelIgnore
    private String devTypeDesc;
    @ExcelIgnore
    private Integer lineId;
    @ExcelIgnore
    private Integer slotId;
    @ExcelIgnore
    private Integer isOverLimit;
    @ExcelIgnore
    private String isOverLimitDesc;
    @ExcelIgnore
    private Timestamp recTime;
    @ExcelIgnore
    private Integer lotId;
}
